#include "dpLibrary\dpWindows.h"
#include "AFObjectFactory.h"
#include "winlib.h"

// Create an object
Sprite* CreateSprite(int color, 
                     int screenX, int screenY, int worldX, int worldY, 
                     int h, int w)
{
  Sprite* newSprite = (Sprite*)malloc(sizeof(Sprite));

  newSprite->color      = color;
  newSprite->screen.X   = screenX;
  newSprite->screen.Y   = screenY;
  newSprite->world.X    = worldX;
  newSprite->world.Y    = worldY;
  newSprite->height     = h;
  newSprite->width      = w;
  newSprite->next       = NULL;

  return newSprite;
}

// Move to the next object in the linked list.
// void NextSprite(Sprite** spriteList)
